<ui:composition xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	template="/layout/layout_nav_footer_adm.xhtml">
	<ui:define name="titre">
		<p:graphicImage value="/img/administration.png" />
	</ui:define>
	<ui:define name="content">
		<h:form styleClass="form-signin" rendered="#{loginbean.adminLogged == false}">
			<h2 class="form-signin-heading">Connectez-vous</h2>
			<h:outputLabel styleClass="control-label" for="login" value="Login " />
			<h:inputText id="login" value="#{loginbean.login}" styleClass="input-block-level" requiredMessage="" required="true" />
			<h:outputLabel styleClass="control-label" for="password" value="Mot de passe " />
			<h:inputSecret id="password" value="#{loginbean.password}" styleClass="input-block-level" requiredMessage="" required="true" />
			<h:commandButton styleClass="btn btn-success" value="Envoyer" action="#{loginbean.connectAdmin}" />
		</h:form>
		<h:panelGroup rendered="#{loginbean.adminLogged==true}">
			<div class="row-fluid">
				<div id="manage_user" class="span6 well">
					<h1>
						<a href="manage_user.jsf">Manage Users</a>
					</h1>
				</div>
				<div id="manage_recipe" class="span6 well">
					<h1>
						<a href="manage_recipe.jsf">Manage Recipes</a>
					</h1>
				</div>
			</div>
		</h:panelGroup>
	</ui:define>
</ui:composition>